package ink.tiptop.learn.convert.test;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zjf
 * @date 2020-08-15 15:54
 * 自定义对象工厂,生成对象方法和转换方式
 */
@Mapper(uses = {DtoFactory.class, EntityFactory.class})
public interface A_CustomFactoryConvert {
    A_CustomFactoryConvert INSTANCE = Mappers.getMapper( A_CustomFactoryConvert.class );

    CarDto carToCarDto(Car car);

    Car carDtoToCar(CarDto carDto);
}
